<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>修改海报</h2>
    </div>
    <form action="{:U()}" method="post" enctype="multipart/form-data" class="form-horizontal">
        <input type="hidden" name='id' value="{$data.id}"/>
        <div class="form-item">
            <label class="item-label">标题</label>
            <div class="controls">
                <input type="text" class="text input-large" name="title" value="{$data.title}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">海报类型</label>
            <div class="controls">
                <select name="istype">
                    <option value="">请选择...</option>
                    <option value="1" <eq name="data.istype" value="1"> selected</eq>>单个商品</option>
                    <option value="2" <eq name="data.istype" value="2"> selected</eq>>活动海报</option>
                </select>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">上传图片</label>
            <img src="{$data.fileurl}" width="160" height="90">
            <div class="controls">
                需要替换图片：
                <input type="file" name="photo" />
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">商品编号</label>
            <div class="controls">
                <input type="text" class="text input-large" name="specid" value="{$data.specid}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">排序</label>
            <div class="controls">
                <input type="text" class="text input-large" name="ordnum" value="{$data.ordnum}">
            </div>
        </div>
         
        <div class="form-item">
            <button class="btn submit-btn" id="submit" type="submit" target-form="form-horizontal">保 存</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Poster/index')}');
    </script>
</block>
